package net.pulseproject.commons.midi.mediator;

import java.util.Collection;

import net.pulseproject.commons.midi.Receivable;
import net.pulseproject.commons.midi.Transmitable;

class MidiTransmitterTransmitableWrapper implements Transmitable {

	private final String portName;
	
	public MidiTransmitterTransmitableWrapper(final String portName) {
		this.portName = portName;
	}
	
	@Override
	public final Collection<Receivable> getOutgoingModules() {
		throw new UnsupportedOperationException("MidiTransmitterTransmitableWrapper is not a subtype of Transmitable!" +
				" Port name was [" + this.portName + "].");
	}
	
	@Override
	public final String toString() {
		return "MidiTransmitterTransmitableWrapper[portName=[" + this.portName + "]]";
	}
	
}
